package cn.actoncode.boot.module.ai.convert.intelligentagent;

import cn.actoncode.boot.module.ai.controller.app.intelligentagent.vo.ChatRecordResp;
import cn.actoncode.boot.module.ai.dal.dataobject.chat.ChatRecordDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ChatRecordConvert {

    ChatRecordConvert INSTANCE = Mappers.getMapper(ChatRecordConvert.class);

    ChatRecordResp convert(ChatRecordDO bean);

    List<ChatRecordResp> convertList(List<ChatRecordDO> list);

}
